package employee;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        List<Employee> list=new ArrayList<>();
        list.add(new Employee(1,"张三",5000));
        list.add(new Employee(1,"李四",5500));
        list.add(new Employee(1,"赵六",4000));
        System.out.println("员工姓名\t员工薪资");
        for (int i = 0; i <list.size() ; i++) {
            System.out.println(list.get(i).getName()+"\t\t"+list.get(i).getSalary());
        }
    }
}
